package cn.lsc.feign;

import cn.lsc.doc.courseDoc;
import cn.lsc.result.JSONResult;
import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;

@Component
public class SearchFallbackFactory implements FallbackFactory<searchFeignService> {


    @Override
    public searchFeignService create(Throwable throwable) {
        return new searchFeignService(){
            @Override
            public JSONResult savechcourse(courseDoc courseDoc) {
                return JSONResult.error("哦豁");
            }
        };
    }
}
